import java.util.Scanner;

/**
 * Created by dllo on 18/3/29.
 */
public class NO1 {
    public static void main(String[] args) {

//        Scanner scanner = new Scanner(System.in);
//        int year = scanner.nextInt();
//
//        if (year % 4 == 0 && year % 100 !=0 ||year % 400 == 0) {
//
//            System.out.println(year + "是润年" );
//
//        }else{
//
//            System.out.println(year + "不是闰年");
//        }


        Scanner scanner = new Scanner(System.in);
        System.out.println("输入一个年份");
        int year = scanner.nextInt();
        if ((year % 100 != 0 && year % 4 == 0) || year % 400 == 0) {  //  && 和 || 是按顺序执行的
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
}
